package com.woniu.springboot.dao;

import java.util.List;

import com.woniu.springboot.entity.Teacher;

public interface TeacherDao {
	/**
	 * 添加老师信息
	 * @param teacher
	 */
	public void insertTeacher(Teacher teacher);
	
	/**
	 * 查询所有老师信息
	 * @return
	 */
	public List<Teacher> selectTeachers();
	
	/**
	 * 根据id查询老师信息
	 * @param tid
	 * @return
	 */
	public Teacher selectTeacherByTid(Integer tid);
	
	/**
	 * 根据id删除老师信息
	 * @param tid
	 */
	public void deleteTeacherByTid(Integer tid);
	
	/**
	 * 修改老师信息
	 * @param teacher
	 */
	public void updateStudentByTid(Teacher teacher);
}
